package com.asc.mywriter.serciceImpl;

import com.asc.mywriter.bean.User;
import com.asc.mywriter.mapper.UserMapper;
import com.asc.mywriter.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

@Service
public class UserServiceImpl implements UserService {

    @Resource
   private UserMapper userMapper;

    @Override
    public User findUser(String userName, String passWord) {
        User user = userMapper.findUser(userName,passWord);


        return user;
    }
}
